package notes.java.sjms23.t10_visitor;

// 具体元素， 三角形
public class ShapeTriangle implements Shape{
    
    // 属性三个边长
    private double a;
    private double b;
    private double c;
    
    public ShapeTriangle(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    @Override
    public double accept(Visitor visitor) {
        return visitor.ofShap(this);
    }

    
    public double getA() {
        return a;
    }

    
    public void setA(double a) {
        this.a = a;
    }

    
    public double getB() {
        return b;
    }

    
    public void setB(double b) {
        this.b = b;
    }

    
    public double getC() {
        return c;
    }

    
    public void setC(double c) {
        this.c = c;
    }

    
}
